<?php
/**
 * Created by PhpStorm.
 * User: kongqi
 * Date: 2019/11/24
 * Time: 15:51
 */

namespace App\Plugin\HostServer\Admin;



use App\Plugin\HostServer\Models\PnHostSvNumber;
use App\Plugin\Website\Models\PnHostSvNav;
use Illuminate\Validation\Rule;

class NumberController extends BaseController
{
    public function setModel()
    {
        $this->model = new PnHostSvNumber();
    }
    public function apiJsonItemExtend($item)
    {
       $item['type_name']=PnHostSvNumber::getStatus($item->type);
        return $item;
    }

    public function checkRule($id = '')
    {


        return [
            'name'=>'required',
            'number'=>'required',
            'range_number'=>'required'


        ];
    }
}